<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<div class="block medium left">
    
    <div class="block_head">
        <div class="bheadl"></div>
        <div class="bheadr"></div>
        <h2>Details of the contact."</h2>
    </div>
    <!-- .block_head ends -->
    
    <div class="block_content clearfix">
        <form>
        
        <logic:notEmpty name="errorMessages" >
            <div class="message errormsg">
                <logic:iterate id="message" name="errorMessages">
                    <p><bean:write name="message"/></p>
                </logic:iterate>
            </div>
        </logic:notEmpty>
        <logic:notEmpty name="successMessages" >
            <div class="message success">
                <logic:iterate id="message" name="successMessages">
                    <p><bean:write name="message"/></p>
                </logic:iterate>
            </div>
        </logic:notEmpty>
        <p>
            <label>Name: </label>
            <span class="text"><bean:write name="contact" property="name"/></span>
        </p>
        <p>
            <label>Email: </label>
            <span class="text"><bean:write name="contact" property="email"/></span>
        </p>
        <p>
            <label>Message: </label><br/>
            <span class="text"><bean:write name="contact" property="message"/></span>
        </p>
        
        <hr/>
        
        <p>
            <html:link styleClass="confirm-button submit small red" action="/admin/contactListing.do?action=delete" paramId="contactID" paramName="contact" paramProperty="contactID">
                Delete
            </html:link>
            <html:link action="/admin/contactListing.do" styleClass="submit long gray">Back to the list</html:link>
        </p>
        
        </form>
    </div>
    <!-- .block_content ends -->
    
    <div class="bendl"></div>
    <div class="bendr"></div>
    
</div>
<!-- .block.medium.left ends -->

